<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="index">
        <title>index</title>

    </head>
    <body>
        <div>
            <h2>Message: ${msg}</h2>
            <img id="verify" width="160" height="45" src="/verify-image" />
        </div>
        <script src="../js/jquery.min.js"></script>
        <script>
            $(function(){
                $('#verify').click(function () {//生成验证码
                    $(this).hide().attr('src', '${ctx}/verify-image?' + Math.floor(Math.random()*100) ).fadeIn(); })
            });
        </script>
    </body>
</html>
